<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserAddress extends Model
{
    protected $guarded = ['id'];

    protected $hidden = [
        'updated_at', 'openid',
    ];
    protected $appends = ['full_address'];

    public function user()
    {
    	return $this->belongsTo(User::class);
    }

    public function getFullAddressAttribute()
    {
        return "{$this->province} {$this->city} {$this->zone}  ";
    }

   
}
